#ifndef __MESH_H__
#define __MESH_H__

#include <vector>

#include "glm_use.h"
#include "Shader.h"

struct Vertex
{
    glm::vec3 pos;
    glm::vec2 texc;
};

class Mesh
{
public:
    Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, unsigned texture);
    void Draw(Shader shader);

private:
    std::vector<Vertex> vertices;
    std::vector<unsigned int> indices;
    unsigned int texture;
    unsigned int VAO, VBO, EBO;
    void setupMesh();
};

#endif